#!/bin/bash

abs_path()
{
    local path=$1
    local basename=$(basename $path)
    local dirname=$(dirname $path)
    cd $dirname
    if [ -h $basename ]
    then
        path=$(readlink $basename)
        abs_path $path
    else
        pwd
    fi
}

proj_home="$(abs_path $0)"

gradle -p $proj_home cleanEclipse eclipse